const DllPlugin = require('webpack/lib/DllPlugin');
const path = require('path');
const dllPath = path.join(__dirname,'./dist/dll');

module.exports = {
    mode: 'development',
    entry: {
        react: ['react', 'react-dom']
    },
    output: {
        filename: '[name]_dll.js',
        path: dllPath,
        library: '_dll_[name]'
    },
    plugins: [
        new DllPlugin ({
            name: '_dll_[name]',
            path: path.join(dllPath, '[name].manifest.json')
        })
    ]


}